package com.gem.service;

import com.gem.domain.Campus;
import com.gem.domain.CampusConn;
import com.gem.domain.CampusInfo;
import com.github.pagehelper.PageInfo;

import java.util.List;

/**
 * @Author: 玲
 * @Description:
 * @create 2019-10-16 11:25
 * @Modified By:
 */
public interface CampusService {

    PageInfo<Campus> findAll(int currentPage, int pageSize);

    Campus findById(Integer campusId);

    void save(Campus campus,CampusInfo info);

    Integer deleteById(Integer campusId);

    Integer update(Campus campus);

    PageInfo<Campus> search(Campus campus,int currentPage, int pageSize);

    CampusInfo findInfo(Integer campusId);

    Integer updateInfo(CampusInfo info);

    Integer saveInfo(CampusInfo info);

    List<Integer> getAllSellers();

    List<Integer> getCampusIds(Integer allSeller);

    Integer deleteAll(int[] campusIds);

    List<Campus> findAllCampus();

    Integer deleteInfo(Integer campusInfoId);

    List<CampusInfo> findAllInfo();

    Integer saveExcel(Campus campus);
}
